{if $prevpage neq 'none'} <span class="link" onclick="gotopage('{$prevpage}')">{$lang.prevpage}</span> {/if} {$pagetext} {if $nextpage neq 'none'} <span class="link" onclick="gotopage('{$nextpage}')">{$lang.nextpage}</span> {/if}